(function(window) {
	var o = {};
	
	o.host = 'http://yzt.lhzw.com.cn/hnyzt';
	/*o.host = 'http://192.168.0.112:8080/platform';*/
	/*o.host = 'http://113.247.238.150:8190/';*/
	var host = $app.getStorage().getItem("_host")
	if(host){
		o.host = 'http://'+host+'/hnyzt';
	}
	o.url = {};
	o.url.loginUrl = o.host + '/app/read/security/login/appLogin.do';
	
	o.uploadUrl = o.host +'/common/image/upload2.do';
	o.imgGetUrl = o.host +'/common/image/getById.do?id='
	
	/** 湖南省、市、区获取接口 */
	o.url.area = {
		get : o.host + '/app/read/jianwei/city/get.do',//获取区域数据，参数：code， 省的code为 0
		cities	: o.host + '/app/read/jianwei/city/cities.do',	//市
		countries : o.host + '/app/read/jianwei/city/countries.do'	//区，参数 code：市的code
	};
	
	o.url.xxhcz = {
		tongji : {
			level1 : o.host + '/app/read/jianwei/xinXingCZH/select.do?method=tongji',
			level2 : o.host + '/app/read/jianwei/xinXingCZH/select.do?method=getShiTongji'
		},
		queryList : {
			level1 : o.host + '/app/read/jianwei/xinXingCZH/select.do?method=tongjiBySheng',
			level2 : o.host + '/app/read/jianwei/xinXingCZH/select.do?method=tongjiByShi'
		},
		
		get : o.host + '/app/read/jianwei/xinXingCZH/select.do'
	},
	
	o.url.bzf = {
		tongji : {
			level1 : o.host + '/app/read/jianwei/penghu/select.do?method=tongjiBySheng',
			level2 : o.host + '/app/read/jianwei/penghu/select.do?method=getShiTongji',
			level3 : o.host + '/app/read/jianwei/penghu/select.do?method=getXianTongji',
		},
		
		fenleitj : {
			level1 : o.host + '/app/read/jianwei/penghu/select.do?method=fenleiTJshi',
			level2 : o.host + '/app/read/jianwei/penghu/select.do?method=fenleiTJxian'
		},
		
		queryList : {
			level1 : o.host + '/app/read/jianwei/penghu/select.do?method=tongjiByShi',
			level2 : o.host + '/app/read/jianwei/penghu/select.do?method=tongjiByXian',
			level3 : o.host + '/app/read/jianwei/penghu/select.do?method=tongjiBySingle'
		},
		
		get : o.host + '/app/read/jianwei/penghu/select.do'
	}
	
	o.url.hcs = {
		
		updateJZ : o.host +'/app/write/jianwei/heiChouST/updateZhengZhiJZ.do',
		//黑臭水统计，额外参数  heichoudj：黑臭等级
		tongji:{
			level1 : o.host + '/app/read/jianwei/heiChouST/select.do?method=stat1',
			level2 : o.host + '/app/read/jianwei/heiChouST/select.do?method=stat2&code=',	//code是市的code
			level3 : o.host + '/app/read/jianwei/heiChouST/select.do?method=stat3&code='		//code是区的code
		},
		//黑臭水列表，额外参数  heichoudj：黑臭等级
		queryList:{
			level1 : o.host + '/app/read/jianwei/heiChouST/select.do?method=statsticLevel1',
			level2 : o.host + '/app/read/jianwei/heiChouST/select.do?method=statsticLevel2&rlike_code=', //rlike_code是市的code
			level3 : o.host + '/app/read/jianwei/heiChouST/select.do?method=query&code='		//code是区的code
		},
		//根据id获取黑臭水详情
		get: o.host + '/app/read/jianwei/heiChouST/select.do?method=getDetail', //参数：id,
		
		get2 : o.host + '/app/read/jianwei/heiChouST/select.do'
	};
	

	
	window.$config = o;
	
})(window);